﻿using System;
using System.ComponentModel.DataAnnotations;

namespace SRM.WebSite.Models
{
    public class ViewModelBase
    {
        public int Id { get; set; }

        [Display(Name = "物品编码")]
        [Required(ErrorMessage = "物品编码不能为空")]
        public string ItemCode { get; set; }

        [Display(Name = "物品名称")]
        [Required(ErrorMessage = "物品名称不能为空")]
        public string ItemName { get; set; }

        [Display(Name = "备注")]
        public string Remark { get; set; }

        [Display(Name = "审核人")]
        public string ReviewBy { get; set; }

        [Display(Name = "审核日期")]
        public DateTime? ReviewDate { get; set; }

        [Display(Name = "创建人")]
        public string CreateBy { get; set; }

        [Display(Name = "创建日期")]
        public DateTime? CreateDate { get; set; }

        [Display(Name = "供应商")]
        public string SupplierId { get; set; }
    }
}
